package com.big.app.service.impl;

import com.big.app.dao.PlaydetailDao;
import com.big.app.dto.PlayDto;
import com.big.app.service.intf.PlaydetailService;
import com.big.app.vo1.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PlaydetailServiceImpl implements PlaydetailService {
    @Resource
    private PlaydetailDao dao;

    @Override
    public R queryDetail(int id) {
        if (id > 0) {
            PlayDto playDto = dao.selectDetail(id);

            return R.ok(playDto);
        }
        return R.fail("网络异常！");
    }
}
